<?php
/* @var $this yii\web\View */

use yii\widgets\LinkPager;
$this->title = '标签';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="qa-tag">
    <table class="table">
        <h3>标签列表</h3>
        <?php foreach ($tags as $tag): ?>
            <a href="/tags/show?id=<?php echo $tag->id ?>" class="btn btn-success btn-xs tags"><?php echo $tag->name ?> (<?php echo $tag->coount($tag['id']); ?>)</a>
        <?php endforeach; ?>
        <?php echo LinkPager::widget(['pagination' => $pages]); ?>
    </table>
</div>
